<template>
    <div>

    </div>
</template>

<script setup>
var arr = [2,5];
var [a,b] = arr;
console.log(a);
console.log(b);
console.log('====');
var cat = {
    name:'加菲猫',
    age:2
}
// 重要
var {age,name,xx} = cat;
console.log(age);
console.log(name);
console.log(xx);
</script>

<style lang="scss" scoped>

</style>